home *** CD-ROM | disk | FTP | other *** search
- trace("best: " + bestMove);
- delete allPossibleMoves;
- trace("time " + (getTimer() - s));
- if(bestMove == null)
- {
- messages.gotoAndStop("Pat");
- }
- isPat = checkChessState(SIDE_COMPUTER);
- tempP = do_move(bestMove,SIDE_COMPUTER);
- isNotMat = checkChessState(SIDE_COMPUTER);
- undo_move(bestMove,SIDE_COMPUTER,tempP);
- if(isNotMat)
- {
- moveRealComputer(bestMove);
- }
- else if(isPat)
- {
- messages.gotoAndStop("Pat");
- }
- else
- {
- computerLoose();
- }
- stop();
-